<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<table class="table table-bordered">
    <thead>
    <tr>
        <th width="8%" class="text-center">ID</th>
        <th width="37%">礼品卡编码</th>
        <th width="10%" class="text-center" >礼品卡密码</th>
        <th width="10%" class="text-center">状态</th>
        <th width="20%" class="text-center">使用时间</th>
        <th width="15%" class="text-center">持有用户</th>
    </tr>
    </thead>
    <tbody class="fs12">
    <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="giftCardCode : ${dataMap['list']}">
            <td class="text-center" th:text="${giftCardCode['id']}"></td>
            <td th:text="${giftCardCode['code']}"></td>
            <td th:text="${giftCardCode['codePwd']}"></td>
            <td class="text-center">
                <span th:if="${giftCardCode['useType']}==2" class="fs14 c-999" data-toggle="tooltip" data-placement="top" data-original-title="已使用"><i class="fa fa-battery-empty"></i></span>
                <span th:if="${giftCardCode['useType']}==1" class="fs14 c-master" data-toggle="tooltip" data-placement="top" data-original-title="未使用"><i class="fa fa-battery-full"></i></span>
            </td>
            <td class="text-center">
                <span class="fs12">
                    <span th:if="${giftCardCode['timeType']}==1" class="pie" th:text="${giftCardCode['beginTime']}+'—'+${giftCardCode['endTime']}">
                    </span>
                    <p th:if="${giftCardCode['timeType']}==2"  class="form-control-static" th:text="${giftCardCode['timeDays']}+'天'"></p>
                </span>
            </td>
            <td class="text-center">
                <span class="fs12" th:if="${giftCardCode['user']}==null">—</span>
                <span class="fs12" th:if="${giftCardCode['user']}!=null" th:text="${giftCardCode['user']['nickname']}"></span>
            </td>
        </tr>
        <tr th:if="${#lists.isEmpty(dataMap['list'])}">
            <td colspan="6" class="text-center">
                <div class="noDataTipsBox">
                    <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                </div>
            </td>
        </tr>
    </tbody>
</table>
<!-- 分页，开始 -->
<div data-th-replace="layout/adminPage"></div>
<!-- 分页，结束 -->

